<include file="application/walletyhbbadmin/view/public/left.html"/>

<div id="dcMain">
    <!-- 当前位置 -->
    <div id="urHere">管理中心<b>></b><strong>分类管理</strong> </div>   <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
    <h3> <a href="{:U('finance/addErji',array('parent_id'=>$parent_id))}" class="actionBtn add">添加二级分类</a></h3>
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
        <tr align="center">
            <th>ID</th>
            <th>分类名称</th>
            <th>分类图片</th>
            <th>是否在首页显示</th>
            <th>操作</th>
        </tr>
        <volist name='list' id='vo'>
            <tr align="center">
                <td>{$vo.id}</td>
                <td>{$vo.name}</td>
                <td><img src="{$vo.image}" alt="" style="width: 120px;height: 80px;"></td>
                <td>
                    <eq name="vo.is_show" value="1">使用
                        <span style="background-color:#0066ff;border-radius:8px">&nbsp;<a href="{:U('finance/updateStatus',array('id'=>$vo.id,'status'=>'0'))}" style="color:#fff">关闭</a>&nbsp;</span>
                    </eq>
                    <eq name="vo.is_show" value="0">关闭
                        <span style="background-color:#0066ff;border-radius:8px">&nbsp;<a href="{:U('finance/updateStatus',array('id'=>$vo.id,'status'=>'1'))}" style="color:#fff">使用</a>&nbsp;</span>
                    </eq>
                </td>
                <td><a href="/walletyhbbadmin/finance/delType/id/{$vo.id}">删除</a>&nbsp;&nbsp;<a href="/walletyhbbadmin/finance/updateErji/id/{$vo.id}">修改</a></td>
            </tr>
        </volist>
    </table>
    <div>{$page}</div>
</div>
</div>
<div class="clear"></div>
<include file="application/walletyhbbadmin/view/public/foot.html"/><!-- dcFooter 结束 -->
<div class="clear"></div> </div>
</body>
<script type="text/javascript">
    // alert($);
    $('.del').click(function(){
        var msg = "您确定要删除吗？";
        if (confirm(msg)==true) {
            var id = $(this).attr('did');
            $.post('/walletyhbbadmin/Type/delType', {'id': id}, function (data) {
                layer.msg(data.info);
                if (data.status > 0) {
                    setTimeout(function () {
                        window.location.reload();
                        isclick4 = true;
                    }, 1000);
                }
            });
        }
    });
</script>
</html>